package com.nidu.demo.user.model;

import com.nidu.demo.base.BaseTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserPosition extends BaseTenantEntity {
    private Long id;
    private Long userId;
    private Long postId;

    public static UserPosition create(Long userId, Long postId){
        UserPosition userPost = new UserPosition();
        userPost.setUserId(userId)
                .setPostId(postId);
        return userPost;
    }
} 